/**
 * 
 */
package design_pattern.template.bank;

/**
 * @author linzq
 * 
 */
public class Client {

  /**
   * @param args
   */
  public static void main(String[] args) {
    Account account = new CDAccount();
    double i = account.calcInterest();
    System.out.println("所得利息：" + i);
    account = new MoneyMarketAccount();
    i = account.calcInterest();
    System.out.println("所得利息：" + i);
  }

}
